package eng.jTrussSolver.Force;

public class ForceData {
	


	private double magnitude;
	private double angle_Rad;
	private int ForceID;
	private int NodeIDofForce;
	
	
	
	public ForceData() {
		
		this.angle_Rad = 0;
		this.magnitude = 0;
		this.ForceID = 0;
		this.NodeIDofForce = 0;

	}
	
	
	
	public ForceData(int forceID,int NodeIDofForce,
			double forceValue, double angleDeg) {
		
		this.angle_Rad = angleDeg /180 *Math.PI;
		this.ForceID = forceID;
		this.NodeIDofForce = NodeIDofForce;
		this.magnitude = forceValue;
		
	}


	public String getForceDataAsString() {
		
		String str="";
		str += ForceID + ":" +"\t";
		str += " Force Value: " + magnitude + "\t";
		str += " Force Angle [deg]: " + angle_Rad/Math.PI * 180;

		return str;
		
	}
	
	public double getMagnitude() {
		return magnitude;
	}



	public void setMagnitude(double magnitude) {
		this.magnitude = magnitude;
	}



	public double getAngle_Rad() {
		return angle_Rad;
	}



	public void setAngle_Rad(double angle_Rad) {
		this.angle_Rad = angle_Rad;
	}

	public double getAngle_Degrees() {
		double a = this.angle_Rad*180/Math.PI;
		return a;
	}

	public int getNodeIDofForce() {
		return NodeIDofForce;
	}



	public void setNodeIDofForce(int nodeIDofForce) {
		NodeIDofForce = nodeIDofForce;
	}



	public int getForceID() {
		return ForceID;
	}


}
